import Vue from 'vue'
import Router from 'vue-router'
import Home from '../pages/Home'
import Regist from '../components/Regist.vue'
import Login from '../components/Login.vue'
import Mine from '../components/Mine.vue'
import Seller from '../components/Seller.vue'
import Launch from '../components/Launch.vue'
import Classify from '../components/Classify.vue'
import add from '../pages/add.vue'
import searchList from '../pages/searchList.vue'
import Headers from '../components/Headers.vue'
import Product from '../pages/Product.vue'
import Manage from '../components/Manage.vue'
import Discover from '../components/Discover.vue'
import Shopping from '../components/Shopping.vue'
import Pay from '../pages/Pay.vue'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Home
    },
    {
      path: '/regist',
      component: Regist
    },
    {
      path: '/login',
      component: Login
    },
    {
      path: '/mine',
      component: Mine
    },
    {
      path: '/seller',
      component: Seller
    },
    {
      path: '/launch',
      component: Launch
    },
    {
      path: '/classify',
      component: Classify
    },
    {
      path: '/add',
      component: add
    },
    {
      path: '/searchlist/:onename/:twoname',
      component: searchList
    },
    {
      path: '/product/:id',
      component: Product
    },
    {
      path: '/manage',
      component: Manage
    },
    {
      path: '/discover',
      component: Discover
    },
    {
      path: '/shopping',
      component: Shopping
    },
    {
      path: '/pay',
      component: Pay
    },
  ]
})
